<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

	<ui:composition template="/pages/layout/mainLayout.xhtml">
		<ui:define name="body">
			<h:dataTable value="#{filmeBean.entities}" var="filme">
				<div class="post">
					<h2 class="title"><h:commandLink value="#{filme.titulo}" action="#{filmeBean.view}">
						<f:setPropertyActionListener value="#{filme.id}" target="#{filmeBean.entity.id}" />
					</h:commandLink></h2>
					<div class="entry"><h:commandLink value="#{filme.imagem.url}" action="#{filmeBean.view}">
						<f:setPropertyActionListener value="#{filme.id}" target="#{filmeBean.entity.id}" />
					</h:commandLink>
					<h:inputTextarea value="#{filme.descricao}" readonly="true" /></div>
					<p class="meta"><h:outputText value="#{filme.dataChegada}" >
						<f:convertDateTime pattern="dd/MM/yyyy"/>
					</h:outputText></p>
				</div>
				<div class="post">
					<center><embed width="600" height="600" style="margin:opx"
						src="flash/animacao.swf"></embed></center>
				</div>
			</h:dataTable>
		</ui:define>
	</ui:composition>
</html>
